#pragma once

#include "cocos2d.h"
#include "ButtonSprite.h"
#include "cocos-ext.h"
#include "setting.h"

using namespace cocos2d::extension;

class GameUpgradeScene : public CCLayer 
{
public:
    bool init(CCScene *scene);  

	~GameUpgradeScene(void); 
	static CCScene* scene();

	void btnBackCallBack(CCObject* obj);
	void btnNextCallBack(CCObject* obj);
	void btnCallUpgradeGun(CCObject* obj);
	void btnCallUpgradeHealth(CCObject* obj);
	void btnCallUpgradeSkillDeadlyShoot(CCObject* obj);
	void show();
	void updateBtn();

private:
	int gunLevel;
	int healthLevel;
	int deadlyShootLevel;

	int money_value; //@ TODO

	UIButton *button_upgrade_01;
	UIButton *button_upgrade_02;
	UIButton *button_upgrade_03;
	UIButton *button_exit;
	UIButton *button_next;
	UILabelAtlas *level01;
	UILabelAtlas *level02;
	UILabelAtlas *level03;
	
	UILabelAtlas* money;
	UILayer *m_pUiLayer;
    Layout *m_pWidget;

	CCSize _winSize;
};


